home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 July
/
EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso
/
earcd
/
comm
/
tcp
/
cserver.lha
/
CServer.amirx
next >
Wrap
Text File
|
1997-03-28
|
855b
|
40 lines
/*
** Connect Thread for AmIRC v1.2a
** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
** Author: Matthew Gregan (kinetik@es.co.nz)
*/
Options Results
Parse Arg Args
Server = Word(Args,1)
Port = Word(Args,2)
Nick = Word(Args,3)
Autojoin = Word(Args,4)
Arguments = 'Connect'
If Server = '' Then Do
'Echo P='d2c(27)'b«Error» Usage: /CServer <server> [port] [nick] [channel to autojoin]'
Exit
End
If ~Datatype(Port,N) Then Do
Nick = Port
Port = ''
End
If Autojoin = '' Then Do
If SubStr(Nick,1,1) = '#' Then Do
Autojoin = Nick
Nick = ''
End
End
If Server ~= '' Then Arguments = Arguments' Server='Server
If Port ~= '' Then Arguments = Arguments' Port='Port
If Nick ~= '' Then Arguments = Arguments' Nick='Nick
If Autojoin ~= '' Then Arguments = Arguments' Autojoin='Autojoin
Address Command 'AmIRC 'Arguments